<?php

namespace Jhub1_Common\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;

/**
 * @ORM\Entity
 * @ORM\Table(name="ofSecurityAuditLog")
 */
class OfSecurityAuditLog
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer", name="msgID", unique=true, nullable=false);
     * @ORM\GeneratedValue(strategy="IDENTITY")
     * @var integer
     */
    private $msgID;

    /**
     * @ORM\Column(type="string", name="username", length=64, nullable=false)
     * @var string
     */
    private $username;

    /**
     * @ORM\Column(type="integer", name="entryStamp", nullable=false)
     * @var integer
     */
    private $entryStamp;

    /**
     * @ORM\Column(type="string", name="summary", length=255, nullable=false)
     * @var string
     */
    private $summary;

    /**
     * @ORM\Column(type="string", name="node", length=255, nullable=false)
     * @var string
     */
    private $node;

    /**
     * @ORM\Column(type="text", name="details", nullable=false)
     */
    private $details;

    public function getUsername()
    {
        return $this->username;
    }

    public function setUsername($val)
    {
        $this->username = $val;
    }

    public function getMsgID()
    {
        return $this->msgID;
    }

    public function getEntryStamp()
    {
        return $this->entryStamp;
    }

    public function setEntryStamp($val)
    {
        $this->entryStamp = $val;
    }

    public function getSummary()
    {
        return $this->summary;
    }

    public function setSummary($val)
    {
        $this->summary = $val;
    }

    public function getNode()
    {
        return $this->node;
    }

    public function setNode($val)
    {
        $this->node = $val;
    }

    public function getDetails()
    {
        return $this->details;
    }

    public function setDetails($val)
    {
        $this->details = $val;
    }
}

/*CREATE TABLE ofSecurityAuditLog
(
    msgID BIGINT PRIMARY KEY NOT NULL,
    username VARCHAR(64) NOT NULL,
    entryStamp BIGINT NOT NULL,
    summary VARCHAR(255) NOT NULL,
    node VARCHAR(255) NOT NULL,
    details LONGTEXT
);
CREATE INDEX ofSecurityAuditLog_tstamp_idx ON ofSecurityAuditLog ( entryStamp );
CREATE INDEX ofSecurityAuditLog_uname_idx ON ofSecurityAuditLog ( username );*/